//
//  MJPhotoBrowser.h
//
//  Created by mj on 13-3-4.
//  Copyright (c) 2013年 itcast. All rights reserved.

#import <UIKit/UIKit.h>
#import "ParentController.h"
#import "PictureManager.h"
#import "REPhotoCollectionController.h"


@protocol LocalMJPhotoBrowserDelegate;
@interface LocalMJPhotoBrowser : ParentController<UIScrollViewDelegate>
{
    PictureManager *picmanager;
    
    MBProgressHUD*hud;
    //    Photo *delePhoto;
}
// 代理
@property (nonatomic, weak) id<LocalMJPhotoBrowserDelegate> delegate;
// 所有的图片对象
@property (nonatomic, strong) NSArray *photos;
// 当前展示的图片索引
@property (nonatomic, assign) NSUInteger currentPhotoIndex;

@property BOOL showMyCloudPhoto;

@property id rephotoParent;

// 显示
- (void)show;
@end

@protocol MJPhotoBrowserDelegate <NSObject>
@optional
// 切换到某一页图片
- (void)photoBrowser:(LocalMJPhotoBrowser *)photoBrowser didChangedToPageAtIndex:(NSUInteger)index;

@end